<?php

namespace Registro\Models;

class UserProfiles extends BaseModel
{

    /**
     *
     * @var integer
     */
    public $profile_id;

    /**
     *
     * @var string
     */
    public $profile_name;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        $this->hasMany('profile_id', 'Registro\Models\Users', 'user_profile_id', array('alias' => 'Users'));
    }

    /**
     * Independent Column Mapping.
     */
    public function columnMap()
    {
        return array(
            'profile_id' => 'profile_id', 
            'profile_name' => 'profile_name'
        );
    }

}
